package com.hehui.partimejob.service.model;

import android.content.Context;

import com.hehui.partimejob.service.model.Bean.RecTaskItemBean;

import java.util.ArrayList;
import java.util.List;

public class RecTaskItemModel extends BaseModel{


    public RecTaskItemModel(Context context) {
        super(context);
    }


    public List<RecTaskItemBean> getListData(){
        ArrayList<RecTaskItemBean> recTaskItemBeans = new ArrayList<>();
        RecTaskItemBean recTaskItemBean = new RecTaskItemBean();
        RecTaskItemBean recTaskItemBean1 = new RecTaskItemBean();
        recTaskItemBean.setTitle("生活调查");
        recTaskItemBean.setCoin(200);
        recTaskItemBean.setSurplus(32611);
        recTaskItemBean1.setTitle("X答卷质量教育问卷");
        recTaskItemBean1.setCoin(1);
        recTaskItemBean1.setSurplus(19992936);
        recTaskItemBeans.add(recTaskItemBean);
        recTaskItemBeans.add(recTaskItemBean1);
        return recTaskItemBeans;
    }

    public void loadRecTask(){
       if(hasNotListener()){
           return;
       }
        listener.OnStateChanged(getTAG(),getListData());
    }
}
